#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "dbsrcdialog.h"
#include <QDockWidget>
#include <QToolBox>
#include <QGroupBox>
#include <QStackedWidget>
#include <QAction>
#include <QVBoxLayout>
#include <QToolButton>
#include <QPushButton>
#include "teacher.h"
#include "house.h"
namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow {
    Q_OBJECT
public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::MainWindow *ui;
    QStackedWidget * cent;
    QDockWidget * dock;
    QToolBox * box;
    QGroupBox * gpteacher;
    QGroupBox * gphouse;
    teacher * teachtab;
    house * housetab;
    QPushButton * butaddhouse;
    QPushButton * butaddteacher;
    void initui();
private slots:
    void on_actconfdb_triggered();
};

#endif // MAINWINDOW_H
